<template>
    <div>
        <label>
            <slot></slot>
        </label>
        <input type="radio" :name="name" value="男"
            :checked="value == '男' ? true : false"
            @change="$emit('input',$event.target.value)"
        ><label>男</label>
        <input type="radio" :name="name" value="女"
            :checked="value == '女' ? true : false"
            @change="$emit('input',$event.target.value)"
        ><label>女</label>
    </div>
</template>
<script>
export default {
    props: ["name", "value"]
}
</script>
<style>

</style>